﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="MIS.Page_Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>登录</title>
    <style type="text/css">
        html,body 
        {
            margin: 0px ; 
            padding:0px; 
            overflow: hidden ; 
        }
        
        #errorMsg 	
        {
            font-weight : bold;
            margin : 5px;
            padding : 5px;
            border-width : 1px;
        }

        #txtID
        {
            width: 204px;
            border-color: #DDDDDD;
            border-width: 1px;
            border-style: solid;
        }
        
        #txtPassword
        {
            width: 204px;
            border-color: #DDDDDD;
            border-width: 1px;
            border-style: solid;
        }


    </style>
</head>
<body style="background-image: url(images/loginbd.gif)">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div style="height: 100%; padding: 0px; margin: 0px; line-height: 100%; vertical-align: middle">
                <table cellpadding="0" cellspacing="0" style="width: 100%" id="tblLogin">
                    <tr>
                        <td style="height: 567px; background-image: url(images/loginl.jpg)">
                            &nbsp;
                        </td>
                        <td style="height: 567px; width: 1024px; background-image: url(images/loginc.jpg);">
                            <div style="padding-top: 250px; margin-left: 650px;">
                                <table style="width: 300px">
                                    <tr>
                                        <td>
                                            <img src="images/logo.png" style="width: 100px; height: 50px" />
                                        </td>
                                        <td align="right" style="padding-bottom: 5px;">
                                            <img src="images/lims.gif" />
                                        </td>
                                    </tr>
                                </table>
                                <table style="font-size: 12px; color: #fff; width: 300px">
                                    <tr>
                                        <td style="padding-left: 18px; white-space: nowrap">
                                            用户名：
                                        </td>
                                        <td>
                                            <input class="TxtUserNameCssClass" id="txtID" runat="server" value="fa" maxlength="40"
                                                name="TxtUserName" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="padding-left: 18px; white-space: nowrap">
                                            密 码：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" CssClass="TxtPasswordCssClass"
                                                name="TxtPassword"></asp:TextBox>
                                            <%--                         <input class="TxtPasswordCssClass" id="txtPassword"  runat="server"  value="cc"  type="password" name="TxtPassword" />--%>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" style="padding-left: 10px">
                                            <asp:RadioButtonList ID="RadioButtonList1" runat="server" meta:resourcekey="RadioButtonList1Resource1">
                                                <asp:ListItem Value="1" meta:resourcekey="ListItemResource1">储存我的帐号和密码</asp:ListItem>
                                                <asp:ListItem Value="2" Selected="True" meta:resourcekey="ListItemResource2">储存我的帐号</asp:ListItem>
                                                <asp:ListItem Value="3" meta:resourcekey="ListItemResource3">每次都询问我的帐号和密码</asp:ListItem>
                                            </asp:RadioButtonList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            <asp:ImageButton ID="btnLogin" runat="server" ImageUrl="~/images/login.gif" OnClick="btnLogin_Click" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            <span style="text-align: center; margin-left: 0px; background-color: Red; color: White;
                                                font-size: 12px; display: inline-block;" id="errorMsg" visible="false" runat="server">
                                            </span>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                        <td style="height: 567px; background-image: url(images/loginr.jpg)">
                            &nbsp;
                        </td>
                    </tr>
                </table>
                <div style="padding-left: 350px; height: 50px; line-height: 50px; text-align: center;">
                    <table id="pnlLoading" runat="server" visible="false">
                        <tr>
                            <td>
                                <asp:Panel ID="loadingImg" runat="server">
                                    <img src="images/Loading.gif" style="width: 20px; height: 20px; vertical-align: middle;
                                        padding: 6px" alt="" />
                                </asp:Panel>
                            </td>
                            <td>
                                <asp:Label ID="loadingTxt" runat="server" Style="color: Red; font-size: 9pt;" meta:resourcekey="msgLabelResource1"
                                    Text="自动登录中,请稍候..."></asp:Label>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    
    <script src="js/jquery-1.8.0.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        function doResize() {
            var nDivTop = $(window).height();
            var top = (nDivTop - parseInt($("#tblLogin").height())) / 2;
            if (top <= 0) top = 0;
            $("#tblLogin").css("padding-top", top);
        }
        
        $(
        function () {
            $(window).resize(function () {
                doResize();
            });

        });

        doResize();
    </script>
    </form>
</body>
</html>
